<?php
defined('IN_IXDCW') or exit('Access Denied');
include tpl('header');
if (isset($dialog)) {
	?>
	<script type="text/javascript">
		var new_top = Number(parent.Dd('Dtop').style.top.replace('px', ''));
		if (new_top > 100) new_top -= 50;
		try {
			parent.Dd('Dtop').style.top = new_top + 'px';
		} catch (e) {
		}
	</script>
<?php
} else {
	show_menu($menus);
}
?>
<style>
	.table{
	padding: 10px;
	}
	.table td{
		font-size: 14px;
		font-family: "Microsoft Yahei";
		height: 35px;
		padding-left: 15px;
	}
	.c666{color: #666;}
</style>
<table class="table">
	<tr>
		<th class="c666">企业名称:</th>
		<td><?php echo $company?></td>
	</tr>
	<tr>
		<th class="c666">形象图片:</th>
		<td><?php if ($thumb) { ?><img height="100" src="<?php echo $thumb ?>"><?php } else { ?>暂无图片<?php } ?></td>
	</tr>
	<tr>
		<th class="c666">主营行业:</th>
		<td>
			<ul >
				<?php foreach($cates as $t){?>
				<?php if ($t){?>
				<li style="float: left;margin-left: 5px"><?php echo get_cache_category_name(40,$t) ?></li>
				<?php }?>
				<?php } ?>
			</ul>
		</td>
	</tr>
	<tr>
		<th class="c666">主营范围:</th>
		<td><textarea style="width: 400px;height: 100px"><?php echo $business?></textarea></td>
	</tr>
	<tr>
		<th class="c666">汽车品牌:</th>
		<td>
			<ul>
			<?php foreach($selectedBrands as $brand){?>
			<li style="float: left;margin-left: 5px">
				<?php echo $brand['name']?>
			</li>
			<?php }?>
			</ul>
		</td>
	</tr>
	<tr>
		<th class="c666">所在地区:</th>
		<td><?php echo area_pos($areaid)?></td>
	</tr>
	<tr>
		<th class="c666">企业地址:</th>
		<td><?php echo $address?></td>
	</tr>
	<tr>
		<th class="c666">联系电话:</th>
		<td><?php echo $telephone?></td>
	</tr>
	<tr>
		<th class="c666">在线店介绍:</th>
		<td>
			<?php echo Post::kindEditor('post[content]', $moduleid, $content,'','800px'); ?>
		</td>
	</tr>
	<form action="?" method="post">
		<input type="hidden" name="moduleid" value="40"/>
		<input type="hidden" name="file" value="index"/>
		<input type="hidden" name="action" value="edit"/>
		<input type="hidden" name="uid" value="<?php echo $userid;?>"/>
	<tr>
		<th class="c666">状态:</th>
		<td>
		   <input type="radio" <?php if($status==3){?> checked <?php } ?> name="status" value="3"/>已通过
		   <input type="radio" <?php if($status==2){?> checked <?php } ?> name="status" value="2"/>审核中
		   <input type="radio" <?php if($status==1){?> checked <?php } ?> name="status" value="1"/>未通过
		</td>
	</tr>
	<tr>
		<th class="c666"></th>
		<td>
			<input type="submit" name="submit" value="修改状态" class="btn" />
		</td>
	</tr>
	</form>
</table>

<script type="text/javascript">Menuon(1);</script>
<?php include tpl('footer'); ?>